<include file="Public:header" />

<div class="row" style="margin:0; padding-top:20px;">
      <div class="col-sm-6">
       <?php $memberid = (int)M('User') -> where(array('id' => $UserInfo)) -> getField('member_id');
                                      $member = M('Member') -> where(array('id' => $memberid)) -> find();
                                ?>
         <div class="panel">
                        <div class="panel-body">
                            <div class="media usr-info">
                                <a href="#" class="pull-left">
                                    <img class="thumb" src="<?php echo $member['img_url'];?>" alt="">
                                </a>
                                <div class="media-body">
                                    <h4 class="media-heading"><?php echo getAdminName($UserInfo);?></h4>
                                    <span><?php echo  D('Member') -> getLevelName($member['id']);?></span>
                                    <p>注册时间：<?php echo date('Y-m-d', $member['reg_time']);?></p>
                                </div>
                            </div>
                        </div>
                    </div>
          <section class="panel">
              <div class="panel-body">
                  <div class="panel">
                      <div class="row states-info">
                          <div class="col-md-6">
                              <div class="panel red-bg">
                                  <div class="panel-body">
                                      <div class="row">
                                          <div class="col-xs-4">
                                              <i class="fa fa-money"></i>
                                          </div>
                                          <div class="col-xs-8">
                                              <span class="state-title"> 总收益 </span>
                                              <h4>￥ {$totalCash|default='0.00'}</h4>
                                          </div>
                                      </div>
                                  </div>
                              </div>
                          </div>
                          <div class="col-md-6">
                              <div class="panel blue-bg">
                                  <div class="panel-body">
                                      <div class="row">
                                          <div class="col-xs-4">
                                              <i class="fa fa-users"></i>
                                          </div>
                                          <div class="col-xs-8">
                                              <span class="state-title">  昨日收益  </span>
                                              <h4>￥ {$yesterdayCash|default='0.00'}</h4>
                                          </div>
                                      </div>
                                  </div>
                              </div>
                          </div>
                          <div class="col-md-6">
                              <div class="panel green-bg">
                                  <div class="panel-body">
                                      <div class="row">
                                          <div class="col-xs-4">
                                              <i class="fa fa-gavel"></i>
                                          </div>
                                          <div class="col-xs-8">
                                              <span class="state-title">  已提现  </span>
                                              <h4>￥ {$getMoney|default='0.00'}</h4>
                                          </div>
                                      </div>
                                  </div>
                              </div>
                          </div>
                          <div class="col-md-6">
                              <div class="panel yellow-bg">
                                  <div class="panel-body">
                                      <div class="row">
                                          <div class="col-xs-4">
                                              <i class="fa fa-bookmark"></i>
                                          </div>
                                          <div class="col-xs-8">
                                              <span class="state-title">  账户余额  </span>
                                              <h4>{$balance}</h4>
                                          </div>
                                      </div>
                                  </div>
                              </div>
                          </div>
                      </div></div>
              </div>
          </section>
          <section class="panel">
          <div class="panel-body">
              <table class="table  table-hover general-table">
                  <thead>
                  <tr>
                      <th> 商家名称</th>
                      <th class="hidden-phone">订单总额</th>
                      <th>分润</th>
                  </tr>
                  </thead>
                  <tbody>
                  <volist name="salelist" id="li">
                      <tr>
                          <td><a href="#">{$li.membername}</a></td>
                          <td class="hidden-phone">{$li.total}</td>
                          <td>{$li.affmoney|default='0.00'}</td>
                      </tr>
                  </volist>
                  </tbody>
              </table>
          </div>
      </section>
        </div>
      <div class="col-sm-6">
                <section class="panel">
                    <div class="panel-body">
                        <div class="summary">
                            <span>平台总收益</span>
                            <h3 class="red-txt" style="color:#f00;">￥ {$allTotal}</h3>
                        </div>
                    </div>
                </section>
                <section class="panel">
                    <div class="panel-body">
                        <div class="summary">
                            <span>平台商家数</span>
                            <h3 class="green-txt" style="color:#f00;">{$memberLevelOne}</h3>
                        </div>
                    </div>
                </section>

          <section class="panel">
              <div class="panel-body">
                  <div id="container" style="min-width:400px;height:400px"></div>
              </div>
          </section>
      </div>
    </div>
<include file="Public:footer" />
<script>
$('.IndexMenu').each(function(index, element) {
    if($(this).find('.col-sm-3.col-lg-3.col-xs-4').length>0){
		$(this).parent().parent().show();
	}
});
</script>
<script src="https://cdn.hcharts.cn/highcharts/highcharts.js"></script>
<script>
var chart = new Highcharts.Chart('container', {
    title: {
        text: '平台营业额',
        x: -20
    },
    xAxis: {
        categories: {$totalmoney['date']}
    },
    yAxis: {
        title:{text:'营业额'},
        plotLines: [{value: 0,width: 1,color: '#808080'}]
    },
    tooltip: {valueSuffix: '元'},
    series: [{
        name: '营业额',
        data: {$totalmoney['arr']}
    }]
});
$('.highcharts-credits').text('');
</script>
<style>
.IndexMenu a {
	background: #EBEBEB;
	padding: 20px 0;
	color: #000;
	text-align: center;
	display: block;
	margin-bottom: 10px;
}
.IndexMenu a i {
	font-size: 18px;
}
.IndexMenu a:hover {
	background: #000000;
	color: #fff;
}
</style>
</body>
</html>
